<div class="container-fluid index">
  <div class="container-header">
    <div class="swiper">
      <el-carousel trigger="click" height="300px" arrow="always" indicator-position="none">
        <el-carousel-item v-for="banner in banners" :key="banner">
          <img :src="banner" alt="">
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="user-info">
      <div class="info">
        <div class="pic">
          <router-link to="/userCenter"><img :src="userInfoData.serverURL || '/3.0/nopictues_user.png'" alt=""></router-link>
        </div>
        <div class="field">
          <p v-for="info in userInfo.FIELDS" :class="info.icon">
            <span class="name">{{info.LABEL}}</span>：
            <span class="value">{{userInfoData[info.CODE]}}</span>
          </p>
        </div>
      </div>
      <div class="amount">
        <div v-for="amount in userInfo.AMOUNTS" class="row">
          <span class="left">{{amount.LABEL}}</span>
          <span class="right">{{userInfoData[amount.CODE]}}</span>
        </div>
      </div>
    </div>
  </div>
  <div class="container-middle">
    <div
      class="grid-content bg-purple short-cut"
      v-for="shortcut in shortcutList"
      :key="shortcut.url"
      :class="shortcut.btnicon"
      @click="$router.push(shortcut.url)">
      {{shortcut.name}}
    </div>
  </div>
  <div class="bills">
    <!-- <el-button v-show="activeName === 'first'" type="primary" class="fast-audit" @click.native="fastAudit">一键审批</el-button>  -->
    <el-tabs v-model="activeName" type="card">
      <el-tab-pane :label="'待审批单据('+ approvalTotalSize +')'" class="handling" name="first">
        <!-- <transition-group
          class="bill-transition"
          tag="div"
          name="index-bill">  -->
          <template v-for="(bill, index) in approvalBills">
            <div
              :key="bill.id"
              class="bill"
              v-if="index < 11"
              @click="gotoApprovalBill(bill)"
              :class="'icon-billback-' + bill.billType">
              <div class="row">
                <span class="name">{{bill.name}}</span>
                <span class="amount">{{bill.amount}}</span>
              </div>
              <div class="row">
                <span class="no">{{bill.billNo}}</span>
                <span class="type">{{bill.billName}}</span>
              </div>
              <div class="row">
                <span class="remark">{{bill.memo}}</span>
                <el-button class="audit" type="primary" size="mini" @click.stop="agree(bill)">同意</el-button>
              </div>
            </div>
          </template>
          <div key="more" class="bill more" v-if="approvalTotalSize > 11" @click="$router.push('/myTask')">
            <div class="circle"><span class="el-icon-more"></span></div>
            <div class="text">查看更多</div>
          </div>
        <!-- </transition-group> -->
      </el-tab-pane>
    </el-tabs>
  </div>
</div>